/*************************************************************************************
 * Universidad del Valle de Guatemala
 * Luis Aguirre Pacay 12024
 * Pablo Duque 12145
 * SimpleSet.java
 *************************************************************************************/
import java.util.ArrayList;
class SimpleSet implements WordSet
{
        private ArrayList<Word> base;
        
        public SimpleSet()
        {
                base = new ArrayList<Word>();
        }
        
        public Word get(Word word)
        {
                int index = base.indexOf(word);
                if(index == -1) return null;
                return base.get(index);
        }
        
        public void add(Word wordObject)
        {
                base.add(wordObject);
        }
}